#include "filelogger.h"

FileLogger::FileLogger(const QString& filename) : Logger()
{
    p_file = new QFile(filename);
    p_file->open(QIODevice::WriteOnly);
}

FileLogger::~FileLogger()
{
    p_file->close();
    delete p_file;
}

void FileLogger::write(const QString &str){
    p_file->write(str.toUtf8());
    p_file->flush();
}
